<template>
  <div class="panel">
    <!-- 标题 -->
    <div class="panel-tite">
      <span>{{ tite }}</span>
      <slot name="btn"></slot>
    </div>
    <!-- 分割线 -->
    <el-divider></el-divider>
    <div class="panel-content">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    tite: {
      type: String,
      default: "标题",
    },
  },
};
</script>

<style lang="less" scoped>
.panel {
  background-color: #fff;
  border-radius: 5px;
  min-height: 300px;
  box-shadow: 0 0 1px 0;

  .panel-tite {
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  .panel-content {
    padding: 10px;
  }
  .el-divider {
    margin: 0px;
  }
}
</style>